﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPWebShell.entity
{
    [System.Diagnostics.DebuggerDisplay("Name={Name},Permission={Mask}")]
    public class SPPermission
    {
        /// <summary>
        /// If True then PrincipalName denotes a Group, otherwise a Login.
        /// </summary>
        public bool IsUser { get; set; }
        public string PrincipalName { get; set; }
        /// <summary>
        /// The Name of the Web or List
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// The URL of the web which contains this List or subweb
        /// </summary>
        public string Url { get; set; }
        public SPPermissionMask Mask { get; set; }
        public bool IsList { get; set; }
    }
}
